package com.haiya.identityaccess.domain.access.repository;

import com.haiya.identityaccess.domain.access.model.Role;
import com.haiya.identityaccess.domain.identity.model.TenantId;

import java.util.Collection;

public interface RoleRepository {

    public void add(Role aRole);

    public Collection<Role> allRoles(TenantId aTenantId);

    public void remove(Role aRole);

    public Role roleNamed(TenantId aTenantId, String aRoleName);
}
